import React from "react";
import { useNavigate } from "react-router-dom";

export default function Login() {
  const navigate = useNavigate();

  return (
    <>
      <div>login组件</div>
      <button
        onClick={() => {
          navigate("/home/shopping?id=1001&name=alice");
          // navigate("/home/shopping/100");
        }}
      >
        跳转
      </button>
    </>
  );
}
